package com.shoppingCart.dataobject;

import com.shoppingCart.enums.OrderStatusEnum;
import com.shoppingCart.enums.PayStatusEnum;
import lombok.Data;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by 69569 on 2017/11/13.
 */
@Data
@Entity
public class Order {
    @Id
    private String orderId;

    private String buyerName;

    private String buyerPhone;

    private String buyerOpenId;

    private BigDecimal orderAmount;

    private Integer orderStatus= OrderStatusEnum.NEW.getCode();

    private Integer payStatus = PayStatusEnum.WAIT.getCode();

    private Date startTime;

    private Date endTime;
}
